package com.example.nonacademic_education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.nonacademic_education.data.request.TheClassList;
import com.example.nonacademic_education.entity.TheClass;
import com.example.nonacademic_education.util.R;

/**
 * @Author:yanghua
 * @Date:2023/4/18 22:28
 */
public interface TheClassService extends IService<TheClass> {
    /**
     * 添加
     * @param theClass
     * @return
     */
    R addOne(TheClass theClass);

    /**
     * 删除
     * @param id
     * @return
     */
    R deleteOne(Long id);

    /**
     * 修改
     * @param theClass
     * @return
     */
    R updateOne(TheClass theClass);

    /**
     * 分页查询
     * @param theClassList
     * @return
     */
    R getLstList(TheClassList theClassList);

    R getIdAndName(TheClassList theClassList);
}
